import {
  service,
  serviceForMock,
  request,
  requestForMock,
  mock
} from '@/api/_service.js'

export function page_1(data) {
  return request({
    url: '/stu/tea/showAllCourse',
    method: 'get',
    params: data
  })
}

export function addObj(obj) {
  return request({
    url: 'stu/tea/addCourse',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/api/chooseCourse/teCourse/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/api/chooseCourse/teCourse/' + id,
    method: 'delete'
  })
}

export function putObj(id, obj) {
  return request({
    url: '/api/chooseCourse/teCourse/' + id,
    method: 'put',
    data: obj
  })
}
